package no.nordicsemi.android.nrfmesh.auth.data.db;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

@Dao
public interface AccountDao {
    @Insert long insert(Account a);
    @Update void update(Account a);
    @Query("SELECT * FROM accounts WHERE username=:username LIMIT 1")
    Account byUsername(String username);
    @Query("SELECT * FROM accounts WHERE id=:id LIMIT 1")
    Account byId(long id);
}
